package com.music.lib.qianqian.support;

/**
 * Jsoup Document support
 */
public class Document {

    protected Object document;

    Document(Object document){
        this.document = document;
    }

    public Elements select(String selector){
        try {
            Object elements = document.getClass().getMethod("select",new Class<?>[]{String.class}).invoke(document,selector);
            return new Elements(elements);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }

}
